﻿using System;
using System.Text;
using System.Drawing;
using System.Buffers;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;

public static partial class glDRIVE
{
    /*
    第一类椭圆积分
    k：k要求0=<k<=1。
    f：参数。
    函数返回第一类椭圆积分值。
    */

    public static string drive_elp1()
    {
        int i;
        double f, k, y;
        StringBuilder sb = new StringBuilder();
        for (i = 0; i <= 10; i++)
        {
            f = i * 3.1415926 / 18.0;
            k = 0.5;
            y = gl.elp1(k, f);
            sb.AppendLine("F(" + k + ", " + f + ")=" + y + "<br>");
            k = 1.0;
            y = gl.elp1(k, f);
            sb.AppendLine("       F(" + k + ", " + f + ")=" + y + "<br>");
        }
        return sb.ToString();
    }
}